/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.jxsm.cz.biz;

import com.jxsm.cz.model.BannerInfo;
import com.jxsm.cz.model.DemoInfo;
import com.jxsm.jfinal.core.JxBiz;

/**
 * 测试
 * @author lenovo
 */
public class BizDemoInfo extends JxBiz<DemoInfo> {

    @Override
    public String delete(Object o) {
        DemoInfo.dao.deleteById(o);
        return this.getErrorCode();
    }

    @Override
    public String add(DemoInfo t, Object... os) {
        if (!t.save()) {
        }
        return this.getErrorCode();
    }

    @Override
    public String edit(DemoInfo t, Object... os) {
        if (!t.update()) {
            return this.createNewSaveError(1);
        }
        return this.getErrorCode();
    }
    

}
